package com.thinkfit.jy.bluetooth;


import android.bluetooth.BluetoothDevice;

import com.common.lib.manager.ConfigurationManager;
import com.inuker.bluetooth.library.BluetoothClient;
import com.inuker.bluetooth.library.utils.BluetoothUtils;

import java.util.List;

public class Bluetooth {
    private static final String TAG = "Bluetooth";

    private static BluetoothClient mBluetoothClient;


    private Bluetooth() {

    }

    public static BluetoothClient getInstance() {
        if (mBluetoothClient == null) {
            synchronized (TAG) {
                if (mBluetoothClient == null) {
                    mBluetoothClient = new BluetoothClient(ConfigurationManager.Companion.getInstance().getContext());
                }
            }
        }
        return mBluetoothClient;
    }

    public static List<BluetoothDevice> getBondedBluetoothDevices() {

        return BluetoothUtils.getBondedBluetoothClassicDevices();
    }

    public static int getConnectStatus(String address) {
        return BluetoothUtils.getConnectStatus(address);
    }
}
